<template>
  <li class="item">
    <slot name="checkbox"></slot>
    <slot name="writeSpan"></slot>
    <input type="button" value="删除" @click="send(iId)">
  </li>
</template>

<script>
export default {
  props:["iId"],
  methods:{
    send(id){
      this.$emit("del", id);
    }
  }
}
</script>

<style>
.item{
  display: flex;
}
</style>